﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="member_msg.aspx.cs" Inherits="WebSite.admin.member.member_msg" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head2" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
       <script src="../js/common.js" type="text/javascript"></script>
        <style type="text/css">
        .x-grid3-row-table .expander
        {
            padding: 5px;
        }
        .x-grid3-row-table .expander p
        {
            padding: 5px 5px 5px 55px;
            text-align:left;
            
        }
        .x-grid3-row-table .expander strong
        {
            font-weight: bold;
        }
    </style>

</head>
<body>
    <form id="form2" runat="server">

     <ext:PageManager ID="PageManager1" runat="server" />

           <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="评论列表"  ShowHeader="true" >
              <Items>
            <ext:Panel ID="Panel2" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">
             <Items>
                <ext:Label ID="Label1"  Width="60px"    runat="server" Text="&nbsp;&nbsp;类别："></ext:Label>
            <ext:DropDownList ID="ddlMsgType" runat="server" >
            
            </ext:DropDownList>
               <ext:Label ID="Label2"  Width="80px"    runat="server" Text="&nbsp;&nbsp;处理状态："></ext:Label>
               <ext:DropDownList ID="ddlProcessStates" runat="server" >
                   <ext:ListItem Text="未处理" Value="0" Selected="true" />
                   <ext:ListItem Text="已处理" Value="1" />
                    <ext:ListItem Text="全部" Value="-1" />
               </ext:DropDownList>
            <ext:Label ID="lblKeywords"  Width="60px"    runat="server" Text="&nbsp;&nbsp;关键字："></ext:Label>
            <ext:TextBox runat="server" ID="txtKeywords"   MaxLength="100" Label="关键字" ></ext:TextBox>
                   <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server" 
                     OnClick="btnSearch_Click"></ext:Button>
                  </Items>
         </ext:Panel>

     </Items>
     
   </ext:SimpleForm>
         <ext:Panel ID="Panel8" ShowBorder="True" ShowHeader="false" BoxFlex="1"  CssClass="x-form-item"  Layout="Fit"
                runat="server">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar2" runat="server">
                        <Items>
                   <ext:Button ID="btnBrachDeleted" runat="server" Text="批量删除"  OnClick="btnBrachDeleted_Click"
                    ConfirmTarget="self" ConfirmText="确定要删除选中的留言吗？" >
                 </ext:Button>
                  <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                            </ext:ToolbarSeparator>
                 
               
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Items>
    </Items>
    </ext:Panel>
     <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"          Height="400px"
         CssClass="x-form-item"   AllowPaging="true" SortColumn="memberid" SortDirection="ASC"     
                        OnPageIndexChange="Grid1_PageIndexChange"      
         ShowHeader="False" runat="server" EnableCheckBoxSelect="True"   
         AllowSorting="true"    IsDatabasePaging="false" 
                        DataKeyNames="msgid" OnSort="Grid1_Sort" 
         EnableRowNumber="True" onrowdatabound="Grid1_RowDataBound" 
         onrowcommand="Grid1_RowCommand">
        <Columns>
            <ext:TemplateField RenderAsRowExpander="true">
                <ItemTemplate>
                    <div class="expander">
                       <div class="expander">
                         <p>
                            <strong>留言内容：</strong><%# Eval("content")%></p>
                       <p>
                            <strong>回复时间：</strong><%# Eval("replayTime")%></p>
                        <p>
                            <strong>内容：</strong><%# Eval("replay") %></p>
                        
                    </div>

                    </div>
                </ItemTemplate>
            </ext:TemplateField>
               <ext:BoundField Width="100px" ColumnID="memberid" DataField="memberid" SortField="memberid" DataFormatString="{0}" HeaderText="用户名" />
              <ext:BoundField Width="180px" DataField="title" SortField="title" DataFormatString="{0}" HeaderText="留言标题" />
              <ext:BoundField Width="100px" DataField="telphone" SortField="telphone" DataFormatString="{0}" HeaderText="联系电话" />

              <ext:BoundField Width="100px" DataField="msgtype" SortField="msgtypeid" DataFormatString="{0}" HeaderText="类别" />
              <ext:BoundField Width="100px" DataField="statesName" SortField="states" DataFormatString="{0}" HeaderText="处理状态" />
              <ext:BoundField Width="100px" DataField="AdminUser" SortField="AdminUser" DataFormatString="{0}" HeaderText="处理人" />
                      

            <ext:BoundField Width="100px" DataField="updatetime" SortField="updatetime" DataFormatString="{0:yy-MM-dd}"
                HeaderText="留言时间" />
            <ext:LinkButtonField ConfirmText="确定要删除吗？" ConfirmTarget="Top" ColumnID="lbfAction1"
                Width="50px" CommandName="deleted" Text="[删除]" HeaderText="删除" />

    
          <ext:WindowField Width="50px" WindowID="Window1" HeaderText="处理" Text="[处理]"   ToolTip="处理" DataIFrameUrlFields="msgid"
                                DataIFrameUrlFormatString="member_msg_add.aspx?mid={0}" Title="处理"
                                IFrameUrl="~/alert.aspx" />

        </Columns>
    </ext:Grid>

      <ext:Window ID="Window1" Title="弹出窗体" Popup="false" EnableIFrame="true" IFrameUrl="about:blank"
        Target="Parent" runat="server"   CloseAction="HidePostBack" IsModal="true" Width="550px"
        EnableConfirmOnClose="true"  OnClose="Window1_Close" Height="350px">
    </ext:Window>


    </form>
</body>
</html>
